<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>  </title>
    <style>
        .box{
            width: 1200px;
            height: 960px;
            border:1px solid #999;
            background-image: url(./img/1.jpg);
             background-repeat:no-repeat; /*no-repeat;repeat;repeat-y; */
              background-position:20% 50% ;/*center bottom; */
             /* background-size:contain;默认原样auto;放大填充满会裁剪图片cover;原比例放大不会裁剪contain */
        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>